package com.leesche.zcsp.node.web.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PubProductTypeCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PubProductTypeCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andProducttypeidIsNull() {
            addCriterion("ProductTypeId is null");
            return (Criteria) this;
        }

        public Criteria andProducttypeidIsNotNull() {
            addCriterion("ProductTypeId is not null");
            return (Criteria) this;
        }

        public Criteria andProducttypeidEqualTo(Long value) {
            addCriterion("ProductTypeId =", value, "producttypeid");
            return (Criteria) this;
        }

        public Criteria andProducttypeidNotEqualTo(Long value) {
            addCriterion("ProductTypeId <>", value, "producttypeid");
            return (Criteria) this;
        }

        public Criteria andProducttypeidGreaterThan(Long value) {
            addCriterion("ProductTypeId >", value, "producttypeid");
            return (Criteria) this;
        }

        public Criteria andProducttypeidGreaterThanOrEqualTo(Long value) {
            addCriterion("ProductTypeId >=", value, "producttypeid");
            return (Criteria) this;
        }

        public Criteria andProducttypeidLessThan(Long value) {
            addCriterion("ProductTypeId <", value, "producttypeid");
            return (Criteria) this;
        }

        public Criteria andProducttypeidLessThanOrEqualTo(Long value) {
            addCriterion("ProductTypeId <=", value, "producttypeid");
            return (Criteria) this;
        }

        public Criteria andProducttypeidIn(List<Long> values) {
            addCriterion("ProductTypeId in", values, "producttypeid");
            return (Criteria) this;
        }

        public Criteria andProducttypeidNotIn(List<Long> values) {
            addCriterion("ProductTypeId not in", values, "producttypeid");
            return (Criteria) this;
        }

        public Criteria andProducttypeidBetween(Long value1, Long value2) {
            addCriterion("ProductTypeId between", value1, value2, "producttypeid");
            return (Criteria) this;
        }

        public Criteria andProducttypeidNotBetween(Long value1, Long value2) {
            addCriterion("ProductTypeId not between", value1, value2, "producttypeid");
            return (Criteria) this;
        }

        public Criteria andProducttypenameIsNull() {
            addCriterion("ProductTypeName is null");
            return (Criteria) this;
        }

        public Criteria andProducttypenameIsNotNull() {
            addCriterion("ProductTypeName is not null");
            return (Criteria) this;
        }

        public Criteria andProducttypenameEqualTo(String value) {
            addCriterion("ProductTypeName =", value, "producttypename");
            return (Criteria) this;
        }

        public Criteria andProducttypenameNotEqualTo(String value) {
            addCriterion("ProductTypeName <>", value, "producttypename");
            return (Criteria) this;
        }

        public Criteria andProducttypenameGreaterThan(String value) {
            addCriterion("ProductTypeName >", value, "producttypename");
            return (Criteria) this;
        }

        public Criteria andProducttypenameGreaterThanOrEqualTo(String value) {
            addCriterion("ProductTypeName >=", value, "producttypename");
            return (Criteria) this;
        }

        public Criteria andProducttypenameLessThan(String value) {
            addCriterion("ProductTypeName <", value, "producttypename");
            return (Criteria) this;
        }

        public Criteria andProducttypenameLessThanOrEqualTo(String value) {
            addCriterion("ProductTypeName <=", value, "producttypename");
            return (Criteria) this;
        }

        public Criteria andProducttypenameLike(String value) {
            addCriterion("ProductTypeName like", value, "producttypename");
            return (Criteria) this;
        }

        public Criteria andProducttypenameNotLike(String value) {
            addCriterion("ProductTypeName not like", value, "producttypename");
            return (Criteria) this;
        }

        public Criteria andProducttypenameIn(List<String> values) {
            addCriterion("ProductTypeName in", values, "producttypename");
            return (Criteria) this;
        }

        public Criteria andProducttypenameNotIn(List<String> values) {
            addCriterion("ProductTypeName not in", values, "producttypename");
            return (Criteria) this;
        }

        public Criteria andProducttypenameBetween(String value1, String value2) {
            addCriterion("ProductTypeName between", value1, value2, "producttypename");
            return (Criteria) this;
        }

        public Criteria andProducttypenameNotBetween(String value1, String value2) {
            addCriterion("ProductTypeName not between", value1, value2, "producttypename");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgIsNull() {
            addCriterion("ProductTypeImg is null");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgIsNotNull() {
            addCriterion("ProductTypeImg is not null");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgEqualTo(String value) {
            addCriterion("ProductTypeImg =", value, "producttypeimg");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgNotEqualTo(String value) {
            addCriterion("ProductTypeImg <>", value, "producttypeimg");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgGreaterThan(String value) {
            addCriterion("ProductTypeImg >", value, "producttypeimg");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgGreaterThanOrEqualTo(String value) {
            addCriterion("ProductTypeImg >=", value, "producttypeimg");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgLessThan(String value) {
            addCriterion("ProductTypeImg <", value, "producttypeimg");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgLessThanOrEqualTo(String value) {
            addCriterion("ProductTypeImg <=", value, "producttypeimg");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgLike(String value) {
            addCriterion("ProductTypeImg like", value, "producttypeimg");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgNotLike(String value) {
            addCriterion("ProductTypeImg not like", value, "producttypeimg");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgIn(List<String> values) {
            addCriterion("ProductTypeImg in", values, "producttypeimg");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgNotIn(List<String> values) {
            addCriterion("ProductTypeImg not in", values, "producttypeimg");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgBetween(String value1, String value2) {
            addCriterion("ProductTypeImg between", value1, value2, "producttypeimg");
            return (Criteria) this;
        }

        public Criteria andProducttypeimgNotBetween(String value1, String value2) {
            addCriterion("ProductTypeImg not between", value1, value2, "producttypeimg");
            return (Criteria) this;
        }

        public Criteria andSdata1IsNull() {
            addCriterion("sData1 is null");
            return (Criteria) this;
        }

        public Criteria andSdata1IsNotNull() {
            addCriterion("sData1 is not null");
            return (Criteria) this;
        }

        public Criteria andSdata1EqualTo(String value) {
            addCriterion("sData1 =", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1NotEqualTo(String value) {
            addCriterion("sData1 <>", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1GreaterThan(String value) {
            addCriterion("sData1 >", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1GreaterThanOrEqualTo(String value) {
            addCriterion("sData1 >=", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1LessThan(String value) {
            addCriterion("sData1 <", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1LessThanOrEqualTo(String value) {
            addCriterion("sData1 <=", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1Like(String value) {
            addCriterion("sData1 like", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1NotLike(String value) {
            addCriterion("sData1 not like", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1In(List<String> values) {
            addCriterion("sData1 in", values, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1NotIn(List<String> values) {
            addCriterion("sData1 not in", values, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1Between(String value1, String value2) {
            addCriterion("sData1 between", value1, value2, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1NotBetween(String value1, String value2) {
            addCriterion("sData1 not between", value1, value2, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata9IsNull() {
            addCriterion("sData9 is null");
            return (Criteria) this;
        }

        public Criteria andSdata9IsNotNull() {
            addCriterion("sData9 is not null");
            return (Criteria) this;
        }

        public Criteria andSdata9EqualTo(String value) {
            addCriterion("sData9 =", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9NotEqualTo(String value) {
            addCriterion("sData9 <>", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9GreaterThan(String value) {
            addCriterion("sData9 >", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9GreaterThanOrEqualTo(String value) {
            addCriterion("sData9 >=", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9LessThan(String value) {
            addCriterion("sData9 <", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9LessThanOrEqualTo(String value) {
            addCriterion("sData9 <=", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9Like(String value) {
            addCriterion("sData9 like", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9NotLike(String value) {
            addCriterion("sData9 not like", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9In(List<String> values) {
            addCriterion("sData9 in", values, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9NotIn(List<String> values) {
            addCriterion("sData9 not in", values, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9Between(String value1, String value2) {
            addCriterion("sData9 between", value1, value2, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9NotBetween(String value1, String value2) {
            addCriterion("sData9 not between", value1, value2, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata3IsNull() {
            addCriterion("sData3 is null");
            return (Criteria) this;
        }

        public Criteria andSdata3IsNotNull() {
            addCriterion("sData3 is not null");
            return (Criteria) this;
        }

        public Criteria andSdata3EqualTo(String value) {
            addCriterion("sData3 =", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3NotEqualTo(String value) {
            addCriterion("sData3 <>", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3GreaterThan(String value) {
            addCriterion("sData3 >", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3GreaterThanOrEqualTo(String value) {
            addCriterion("sData3 >=", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3LessThan(String value) {
            addCriterion("sData3 <", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3LessThanOrEqualTo(String value) {
            addCriterion("sData3 <=", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3Like(String value) {
            addCriterion("sData3 like", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3NotLike(String value) {
            addCriterion("sData3 not like", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3In(List<String> values) {
            addCriterion("sData3 in", values, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3NotIn(List<String> values) {
            addCriterion("sData3 not in", values, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3Between(String value1, String value2) {
            addCriterion("sData3 between", value1, value2, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3NotBetween(String value1, String value2) {
            addCriterion("sData3 not between", value1, value2, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata4IsNull() {
            addCriterion("sData4 is null");
            return (Criteria) this;
        }

        public Criteria andSdata4IsNotNull() {
            addCriterion("sData4 is not null");
            return (Criteria) this;
        }

        public Criteria andSdata4EqualTo(String value) {
            addCriterion("sData4 =", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4NotEqualTo(String value) {
            addCriterion("sData4 <>", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4GreaterThan(String value) {
            addCriterion("sData4 >", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4GreaterThanOrEqualTo(String value) {
            addCriterion("sData4 >=", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4LessThan(String value) {
            addCriterion("sData4 <", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4LessThanOrEqualTo(String value) {
            addCriterion("sData4 <=", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4Like(String value) {
            addCriterion("sData4 like", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4NotLike(String value) {
            addCriterion("sData4 not like", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4In(List<String> values) {
            addCriterion("sData4 in", values, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4NotIn(List<String> values) {
            addCriterion("sData4 not in", values, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4Between(String value1, String value2) {
            addCriterion("sData4 between", value1, value2, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4NotBetween(String value1, String value2) {
            addCriterion("sData4 not between", value1, value2, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata5IsNull() {
            addCriterion("sdata5 is null");
            return (Criteria) this;
        }

        public Criteria andSdata5IsNotNull() {
            addCriterion("sdata5 is not null");
            return (Criteria) this;
        }

        public Criteria andSdata5EqualTo(String value) {
            addCriterion("sdata5 =", value, "sdata5");
            return (Criteria) this;
        }

        public Criteria andSdata5NotEqualTo(String value) {
            addCriterion("sdata5 <>", value, "sdata5");
            return (Criteria) this;
        }

        public Criteria andSdata5GreaterThan(String value) {
            addCriterion("sdata5 >", value, "sdata5");
            return (Criteria) this;
        }

        public Criteria andSdata5GreaterThanOrEqualTo(String value) {
            addCriterion("sdata5 >=", value, "sdata5");
            return (Criteria) this;
        }

        public Criteria andSdata5LessThan(String value) {
            addCriterion("sdata5 <", value, "sdata5");
            return (Criteria) this;
        }

        public Criteria andSdata5LessThanOrEqualTo(String value) {
            addCriterion("sdata5 <=", value, "sdata5");
            return (Criteria) this;
        }

        public Criteria andSdata5Like(String value) {
            addCriterion("sdata5 like", value, "sdata5");
            return (Criteria) this;
        }

        public Criteria andSdata5NotLike(String value) {
            addCriterion("sdata5 not like", value, "sdata5");
            return (Criteria) this;
        }

        public Criteria andSdata5In(List<String> values) {
            addCriterion("sdata5 in", values, "sdata5");
            return (Criteria) this;
        }

        public Criteria andSdata5NotIn(List<String> values) {
            addCriterion("sdata5 not in", values, "sdata5");
            return (Criteria) this;
        }

        public Criteria andSdata5Between(String value1, String value2) {
            addCriterion("sdata5 between", value1, value2, "sdata5");
            return (Criteria) this;
        }

        public Criteria andSdata5NotBetween(String value1, String value2) {
            addCriterion("sdata5 not between", value1, value2, "sdata5");
            return (Criteria) this;
        }

        public Criteria andAdminidIsNull() {
            addCriterion("AdminID is null");
            return (Criteria) this;
        }

        public Criteria andAdminidIsNotNull() {
            addCriterion("AdminID is not null");
            return (Criteria) this;
        }

        public Criteria andAdminidEqualTo(Long value) {
            addCriterion("AdminID =", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotEqualTo(Long value) {
            addCriterion("AdminID <>", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidGreaterThan(Long value) {
            addCriterion("AdminID >", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidGreaterThanOrEqualTo(Long value) {
            addCriterion("AdminID >=", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidLessThan(Long value) {
            addCriterion("AdminID <", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidLessThanOrEqualTo(Long value) {
            addCriterion("AdminID <=", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidIn(List<Long> values) {
            addCriterion("AdminID in", values, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotIn(List<Long> values) {
            addCriterion("AdminID not in", values, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidBetween(Long value1, Long value2) {
            addCriterion("AdminID between", value1, value2, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotBetween(Long value1, Long value2) {
            addCriterion("AdminID not between", value1, value2, "adminid");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("UpdateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("UpdateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("UpdateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UpdateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("UpdateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("UpdateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("UpdateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("UpdateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("UpdateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("UpdateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}